<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置 - AI书签智能分类</title>
    <style>
        :root {
            --primary-color: #007AFF;
            --sidebar-width: 240px;
            --header-height: 60px;
            --content-max-width: 800px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, sans-serif;
            background: #f5f5f7;
            color: #1d1d1f;
            min-height: 100vh;
            display: flex;
        }

        /* 侧边栏样式 */
        .sidebar {
            width: var(--sidebar-width);
            background: white;
            border-right: 1px solid rgba(0, 0, 0, 0.05);
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            overflow-y: auto;
            padding: 24px 0;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
        }

        .sidebar-header {
            padding: 0 24px 24px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            margin-bottom: 16px;
        }

        .sidebar-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-color);
            letter-spacing: -0.3px;
            margin-bottom: 4px;
        }

        .nav-list {
            list-style: none;
            margin: 0;
            padding: 0 16px;
        }

        .nav-item {
            padding: 10px 16px;
            margin: 6px 0;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 10px;
            color: #6e6e73;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 500;
            font-size: 15px;
        }

        .nav-item:hover {
            background: rgba(0, 122, 255, 0.08);
            color: var(--primary-color);
            transform: translateX(2px);
        }

        .nav-item.active {
            background: var(--primary-color);
            color: white;
            box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
            transform: translateX(0);
        }

        /* 主内容区域样式 */
        .main-content {
            margin-left: var(--sidebar-width);
            flex: 1;
            padding: 40px;
            max-width: calc(100vw - var(--sidebar-width));
        }

        .content-section {
            max-width: var(--content-max-width);
            margin: 0 auto;
        }

        .settings-card {
            background: white;
            padding: 32px;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            margin-bottom: 24px;
        }

        .settings-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        h2 {
            margin: 0 0 24px 0;
            color: #1d1d1f;
            font-size: 24px;
            font-weight: 600;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .form-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        label {
            font-size: 14px;
            color: #6e6e73;
            font-weight: 500;
        }

        input, select {
            width: 100%;
            padding: 12px 16px;
            border-radius: 8px;
            border: 1px solid #d2d2d7;
            font-size: 14px;
            transition: all 0.2s ease;
            outline: none;
        }

        input:focus, select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
        }

        button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        button:hover {
            background: #0066d9;
            transform: translateY(-1px);
        }

        .hidden {
            display: none;
        }
    </style>
</head>
<body>
    <!-- 侧边栏 -->
    <div class="sidebar">
        <div class="sidebar-header">
            <div class="sidebar-title">设置</div>
        </div>
        <ul class="nav-list">
            <li><a href="#basic" class="nav-item active" data-section="basic">基本设置</a></li>
            <li><a href="#classify" class="nav-item" data-section="classify">分类设置</a></li>
            <li><a href="#about" class="nav-item" data-section="about">关于</a></li>
        </ul>
    </div>

    <!-- 主内容区域 -->
    <div class="main-content">
        <!-- 基本设置 -->
        <div id="basic" class="content-section">
            <div class="settings-card">
                <h2>基本设置</h2>
                <div class="form-group">
                    <div class="form-item">
                        <label for="baseUrl">API 基础地址</label>
                        <input type="text" id="baseUrl" placeholder="请输入 API 基础地址">
                    </div>
                    <div class="form-item">
                        <label for="apiKey">API Key</label>
                        <input type="password" id="apiKey" placeholder="请输入 API Key">
                    </div>
                    <div class="form-item">
                        <label for="model">模型选择</label>
                        <input type="text" id="model" placeholder="请输入模型名称，如：gpt-4">
                    </div>
                </div>
            </div>
        </div>

        <!-- 分类设置 -->
        <div id="classify" class="content-section hidden">
            <div class="settings-card">
                <h2>分类设置</h2>
                <div class="form-group">
                    <div class="form-item">
                        <label for="classifyMode">分类模式</label>
                        <select id="classifyMode">
                            <option value="one_by_one">逐个分类</option>
                            <option value="batch">批量分类</option>
                        </select>
                    </div>
                    <div class="form-item">
                        <label for="reclassify">重新分类</label>
                        <select id="reclassify">
                            <option value="false">跳过已分类书签</option>
                            <option value="true">重新分类所有书签</option>
                        </select>
                    </div>
                    <div class="form-item">
                        <label for="saveFolder">保存文件夹名称</label>
                        <input type="text" id="saveFolder" placeholder="默认：AI分类">
                    </div>
                </div>
            </div>
        </div>

        <!-- 关于 -->
        <div id="about" class="content-section hidden">
            <div class="settings-card">
                <h2>关于</h2>
                <p>AI书签智能分类 - 让您的书签管理更智能、更轻松</p>
                <p>版本：1.0.0</p>
            </div>
        </div>
    </div>

    <script src="options.js"></script>
</body>
</html>